package com.yangyang.ralearn.common.framework;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.yangyang.ralearn.util.RLConfig;

public class BeanManager {

	private static ApplicationContext context = new ClassPathXmlApplicationContext(
			"applicationContext.xml");

	public static ApplicationContext getApplicationContext() {
		return context;
	}

	public static RLConfig getRLConfig() {
		return (RLConfig) context.getBean("rlConfig");
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		System.out.println(getRLConfig());
	}

}
